RMM and HSM tools

Below are a couple of batch tools, which may help an installation to perform “non RACF” related tasks.  This code has been written for a US financial institution, which has now moved its z/OS data centre from Switzerland to ASIA.

 

DEB$Cat3  -  RMM VOLUME eject facility

Purpose:

- Eject RMM volumes based on supplied filters.  This facility has been written because the IBM RMM supplied housekeeping facilities did not provide a function to eject tapes over a specific time range e.g  from 10 pm – 02 am.

- With this facility you select a range of tape datasets(volumes) you want to be ejected.

 

JCL required to run DEB$CAT3

Run the following JCL (refer to the RA2002.SAMPLIB member DEB$CAT3) to create the RMM control cards and reports:

//IGGCSI00   EXEC PGM=DEB$CAT3                                 

//STEPLIB    DD   DISP=SHR,DSN=YOUR.LINKLIB                    

//CATPRINT   DD   SYSOUT=*             * ICF CATALOG INFOS     

//RMMPUNCH   DD   SYSOUT=B             * RMM EJECT COMMANDS    

//RMMINPUT   DD   DISP=SHR,DSN=RMM.EXTRACT.FILE (HSKP)         

//RMMEXPOR   DD   SYSOUT=*             * LOCAL TO DISTANT INFO 

//RMMIMPOR   DD   SYSOUT=*             * DISTANT TO LOCAL INFO 

//CATLIST    DD   SYSOUT=*             * CONTROL CARD LISTING  

//CATINPUT   DD *                      * CONTROL CARDS         

+OPTIONS CATALOG=**,                                           

         LEVEL=XRZP001.TEST.**,                                

         TYPE=BHA                                              

+INCLUDE DATASET=XRZP001.TEST.BRSRES.*                         

+INCLUDE DATASET=XRZP001.TEST.*.PDS                            

+INCLUDE DATASET=XRZP001.TEST.$MQS*.**                         

+EXCLUDE DATASET=XRZP001.TEST.$MQSIBM.SRCELIB                  

+EXCLUDE DATASET=XRZP001.TEST.$MQSMS13.SRCELIB                 

                                                                

 

 

Filter Control Statements (//CATINPUT DD ) 

Following control statements can be utilized to create the RMM EJECT reports:

DDname

Verbs

Keywords

Comment

Default

//CATINPUT

*

N/A

Comment line

N/A

+OPTIONS

 

Note: only one statement allowed

CATALOG=

Catalog name

Generic filtering is supported.

ALL

LEVEL=

Global Dataset name level e.g. SYS1.*

Generic filtering is supported.

ALL

TYPE=

Catalog entry types. Entries BHA are required.

N/A

 

·       A - NON-VSAM DATA SET

·       B - GDG (USED FOR RMMCV EJECT COMMANDS)

·       C - CLUSTER     

·       G - ALTERNATE INDEX 

·       H - GDS        

·       R - PATH   

·       X - ALIAS      

·       U - USER CATALOG CONNECTOR ENTRY      

·       L - ATL LIBRARY ENTRY (UNSUPPORTED)   

·       W - ATL VOLUME ENTRY  (UNSUPPORTED)   

 

 

 

 

 

+INCLUDE

+EXCLUDE

 

Note: you can define as many +INCLUDE and +EXCLUDE statements as required. Make sure the region size is set to e.g. REGION=0M

DATASET=

Specifies the datasets to be extracted.

Generic filtering is supported.

 

N/A

 

 

 

DDNAMES  related to the RMM EJECT facility

 

DDNAME

Description

CATLIST

Print file – lists all //CATINPUT control statements.  If an error occurred please review this output.

CATPRINT

Print file – lists all catalog entries selected

RMMINPUT

Input file – RMM housekeeping extract file containing all RMM volume and dataset information

RMMPUNCH

Punch file – lists all volsers which can be ejected based on filtering

RMMEXPOR

Print file – volumes to be exported from local to distant

RMMIMPOR

Print file – volumes to be imported from distant to local

RMMCONTI

Print file – contingency report

 

 

Output Samples:

//CATLIST lists all control card entries ‘as is’:

CATLIST -10 CONTROL STATEMENTS                                     RA2(C) V3R4M0 07/03/05 12.34   RACF VER:2608      PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001C STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  18:21:41

                                                                                                                                    

CONTROL CARD(S) READ VIA //CATINPUT                                      ERROR MESSAGE                                              

------------------------------------------------------------------------ -------------------------------------------------         

                                                                                                                                    

*                                                                                                                                  

+OPTIONS CATALOG=**,               

         LEVEL=XRZP001.V*.**,      

         TYPE=BHA                  

+INCLUDE DATASET=XRZP001.VTAPE01.**

+INCLUDE DATASET=XRZP001.VTAPE02.**

+INCLUDE DATASET=XRZP001.VTAPE05.**

+INCLUDE DATASET=XRZP001.VTAPE03.**

*EXCLUDE DATASET=XRZP001.VTAPE05.**

 

//CATPRINT lists catalog entries selected:

DEB$CAT3-10 LIST ALL ONLINE ICF CATALOG ENTRIES          RA2(C) V3R4M0 08/20/05 18.21  RACF VERS 2608                PAGE:         1

            ICF CATALOG NAME PROCESSED: CATALOG.ALS001                                                               DATE:2005-08-20

            JOBNAME :XRZP001C STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  18:21:41

ENTRY TYPE     DATASET NAME                                 INFORMATION (LAST/PREV GDG; ERRORS)                                    

-------------- -------------------------------------------- --------------------------------------------                           

GDG =========> XRZP001.VTAPE01.TB00                         XRZP001.VTAPE01.TB00.G0005V00                                           

                                                            XRZP001.VTAPE01.TB00.G0003V00                                          

NONVSAM =====> XRZP001.VTAPE01.TB00.G0002V00                                                                                        

NONVSAM =====> XRZP001.VTAPE01.TB00.G0003V00                                                                                       

NONVSAM =====> XRZP001.VTAPE01.TB00.G0005V00                                                                                        

GDG =========> XRZP001.VTAPE02.TB00                         XRZP001.VTAPE02.TB00.G0006V00                                          

                                                            XRZP001.VTAPE02.TB00.G0005V00                                           

NONVSAM =====> XRZP001.VTAPE02.TB00.G0004V00                                                                                       

NONVSAM =====> XRZP001.VTAPE02.TB00.G0005V00                                                                                        

NONVSAM =====> XRZP001.VTAPE02.TB00.G0006V00                                                                                       

GDG =========> XRZP001.VTAPE03.TB00                         XRZP001.VTAPE03.TB00.G0012V00                                          

                                                            XRZP001.VTAPE03.TB00.G0011V00                                          

 

//RMMPUNCH contains RMM EJECT control cards generated:

RMM  CV  AR0012    EJECT

RMM  CV  AR0133    EJECT

RMM  CV  AR0111    EJECT

 

 

//RMMEXPOR lists all volumes to be move from ‘local’ to ‘distant’:

DEB$CATE-10 MOVE VOLUMES FROM "LOCAL" TO "DISTANT"       RA2(C) V3R4M0 07/03/05 12.50  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001C STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  18:21:44

VOLUME DATASET NAME                                 RACK   BIN    OWNER    MEDIA-N. ASSIGNDATE EXPIR.DATE LOCATION DESTINAT STATUS 

------ -------------------------------------------- ------ ------ -------- -------- ---------- ---------- -------- -------- --------

AR0055 XRZP001.VTAPE05.TB00.G0005V00                AR0055        DFDSS             04/11/2004 04/11/2004 DISTANT  ROB1     MASTER 

AR0058 XRZP001.VTAPE05.TB00.G0005V00                AR0058        DFDSS             23/10/2004 23/10/2004 ROB1              MASTER 

 

 

//RMMIMPOR lists all volumes to be move from ‘distant’ to ‘local’:

DEB$CATI-10 MOVE VOLUMES FROM "DISTANT" TO "LOCAL"       RA2(C) V3R4M0 07/03/05 12.49  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001C STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  18:21:44

VOLUME DATASET NAME                                 RACK   BIN    OWNER    MEDIA-N. ASSIGNDATE EXPIR.DATE LOCATION DESTINAT STATUS 

------ -------------------------------------------- ------ ------ -------- -------- ---------- ---------- -------- -------- --------

A      XRZP001.VTAPE02.TB00.G0005V00                ****** ****** ******** ******** ********** ********** ******** ******** UNKNOWN

        * WARNING: ABOVE VOLUME IS NOT IN TRANSIT                                                                                   

                                                                                                                                   

B      XRZP001.VTAPE02.TB00.G0005V00                ****** ****** ******** ******** ********** ********** ******** ******** UNKNOWN

        * WARNING: ABOVE VOLUME IS NOT IN TRANSIT                                                                                  

                                                                                                                                    

PR0055 XRZP001.VTAPE05.TB00.G0004V00                PR0055        DFDSS             04/11/2004 04/11/2004 DISTANT  ROB1     MASTER 

PR0135 XRZP001.VTAPE05.TB00.G0004V00                PR0135        DFDSS             16/10/2004 16/10/2004 ROB1              MASTER 

       N* WARNING: ABOVE VOLUME IS NOT IN TRANSIT                                                                                  

 

 

//RMMCONTI contingency report:

DEB$CATC-10 MOVE VOLUMES FROM "DISTANT" TO "LOCAL"       RA2(C) V3R4M0 07/03/05 12.54  RACF VERS 2608                PAGE:         1

            "CONTINGENCY REPORT"                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001C STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  18:21:44

DATASET NAME                                 VOLUME BIN    VSEQ DSEQ JOBNAME  CREAT.DATE C-TIME EXPDT.DATE STORE-DATE LBL FMT  V   

-------------------------------------------- ------ ------ ---- ---- -------- ---------- ------ ---------- ---------- --- ---- -   

XRZP001.VTAPE01.TB00.G0003V00                1                     0                                                               

XRZP001.VTAPE01.TB00.G0003V00                2                     0                                                               

XRZP001.VTAPE02.TB00.G0005V00                A                     0                                                               

XRZP001.VTAPE02.TB00.G0005V00                B                     0                                                               

XRZP001.VTAPE03.TB00.G0011V00                AR0696           1    2 PCCSA05D 08/05/1996 150902 02/11/2004 03/11/2004 SL  36TR M    

XRZP001.VTAPE03.TB00.G0011V00                AR1133           2    6 PSYXTN0D 23/04/1997 104156 04/11/2004 05/11/2004 SL  36TR M   

XRZP001.VTAPE03.TB00.G0011V00                AR1212           3    1 PCCSM3ZD 23/04/1997 103815 03/11/2004 04/11/2004 SL  36TR M   

XRZP001.VTAPE03.TB00.G0011V00                AR1588 000277    1    5 PCCSA03M 23/06/1998 195420 31/01/2004 02/04/2004 SL  36TR M   

XRZP001.VTAPE03.TB00.G0011V00                AR1615           1    4 PCCSA04W 10/08/1998 160742 23/10/2004 26/10/2004 SL  36TR M   

XRZP001.VTAPE03.TB00.G0011V00                AR1811 000639    3    3 PCCSS93M 02/12/1998 161111 01/07/2004 01/09/2004 SL  36TR M   

XRZP001.VTAPE05.TB00.G0004V00                AR0055           3    0 PCCSS93D 05/03/1996 101846 04/11/2004 05/11/2004 SL  36TR M   

XRZP001.VTAPE05.TB00.G0004V00                AR0135           1    0 PCCS008W 05/03/1996 101828 16/10/2004 19/10/2004 SL  36TR M   

                                                                                                                                    

                                                                                                                                   

===> TOTAL NUMBER OF ENTRIES LISTED:          12                                                                                    

 

 

 

DEB$CI10  -  RMM DSN Verication facility

Purpose:

- Verify RMM entries versus the HOST CATALOG(s)

- Create various reports

- Create RMM Release control cards

 

JCL required to run DEB$CI10

Run the following JCL (refer to the RA2002.SAMPLIB member DEB$CI10) to create the verification reports:

//IGGCSI00   EXEC PGM=DEB$CI10                       

//STEPLIB    DD   DISP=SHR,DSN=RA2002.LINKLIB 

//RMMPRINT   DD SYSOUT=*                              

//RMMINPUT   DD DISP=SHR,DSN=RA2002.RMM.TESTDATA     

//RMMPRINT   DD SYSOUT=*                             

//RMMDERRC   DD SYSOUT=*                             

//RMMDLST1   DD SYSOUT=*                             

//RMMDLST2   DD SYSOUT=*                              

//RMMDLST3   DD SYSOUT=*                             

//RMMDLST4   DD SYSOUT=*                             

//RMMDLST5   DD SYSOUT=*                             

//RMMDLST6   DD SYSOUT=*                             

//RMMPRINT   DD SYSOUT=*                             

//RMMRELDV   DD DISP=SHR,DSN=xxxx                 

//RMMVERRC   DD SYSOUT=*                             

//RMMVLST1   DD SYSOUT=*                             

//RMMVLST2   DD SYSOUT=*                              

//RMMVLST3   DD SYSOUT=*                             

//RMMVLST4   DD SYSOUT=*                             

//RMMVLST5   DD SYSOUT=*                             

//RMMVLST6   DD SYSOUT=*                             

//RMMCARD    DD *                                     

*                                                    

+OPTIONS HEADING=YES,STATUS=MASTER,DATEFORM=E        

*INCLUDE VOLUME=PV* DATASET=HSM.**,STATUS=VOGT       

+INCLUDE VOLUME=*                                    

 

Filter Control Statements (//RMMCARD DD ) 

Following control statements can be utilized to obtain the RMM verification reports:

DDname

Verbs

Keywords

Comment

Default

//RMMCARD

*

N/A

Comment line

N/A

+OPTIONS

 

Note: only one statement allowed

HEADING=YES or NO

Print headings (title lines)

YES

DATEFORM=

E = EU

A=US

J=Julian

 

EU

STATUS=

E.g. MASTER, SCRATCH

ALL

+INCLUDE

+EXCLUDE

 

Note: you can define as many +INCLUDE and +EXCLUDE statements as required. Make sure the region size is set to e.g. REGION=0M

VOLUME==

Specifies the volume serial number(s) to extract.

Generic filtering is supported.

 

N/A

 

DATASET=

Specifies the datasets to extract.

Generic filtering is supported.

 

N/A

 

STATUS=

E.g. MASTER, SCRATCH etc.

ALL

 

 

DDNAMES  related to the RMM verification  process

 

DDNAME

Description

RMMPRINT

Print file – lists all //RMMINPUT control statements.  If an error occurred please review this output.

RMMINPUT

RMM Input file – the RMM Housekeeping extract is used as input

RMMCARD

Input file - Control statements

RMMPRINT

Print file – lists all processed RMM control cards found via //RMMCARD

RMMDERRC

Print file – lists all datasets not found in the ICF catalog

RMMDLST1

Print file – lists all datasets sorted by DSN

RMMDLST2

Print file – lists all datasets sorted by DSN with VRS mask

RMMDLST3

Print file – lists all datasets sorted by creation date

RMMDLST4

Print file – lists all datasets sorted by retention date

RMMDLST5

Print file – lists all datasets sorted by DSN with SMS information

RMMDLST6

Print file – lists all datasets sorted by volsers

RMMVERRC

Print file – lists all volsers where the dataset is cataloged

RMMVLST1

Print file – lists all volsers sorted by volume serial number

RMMVLST2

Print file – lists all volsers sorted by dataset names

RMMVLST3

Print file – lists all volsers sorted by utilization

RMMVLST4

Print file – lists all volsers sorted by assign date

RMMVLST5

Print file – lists all volsers sorted by change date

RMMVLST6

Print file – lists all volsers sorted by assign date

RMMRELDV

Punch file – lists all volsers which can be released from RMM based on filtering

 

Output Samples:

//RMMPRINT lists all control card entries ‘as is’:

RMMPRINT-10 CONTROL STATEMENTS                                     RA2(C) V3R4M0 07/03/05 12.35   RACF VER:2608      PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001$ STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  17:10:14

                                                                                                                                   

CONTROL CARD(S) READ VIA //RMMCARD                                       ERROR MESSAGE                                             

------------------------------------------------------------------------ -------------------------------------------------         

                                                                                                                                    

*                                                                                                                                  

+OPTIONS HEADING=YES,STATUS=MASTER,DATEFORM=E                                                                                      

*INCLUDE VOLUME=PV* DATASET=HSM.**,STATUS=MASTER

+INCLUDE VOLUME=*                                                                                                                   

 

 

//RMMLST1 lists dataset entries:

DEB$CI30-10 DATASET NAME LIST (SORTED BY DSN)            RA2(C) V3R4M0 07/03/05 13.32  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001$ STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  17:11:29

DATASET NAME                                 SEQ# VOLSER OWNER    SIZE IN KB CREAT.DATE TIME   SYSTEMID CHNG.DATE  TIME   JOBNAME  T

-------------------------------------------- ---- ------ -------- ---------- ---------- ------ -------- ---------- ------ -------- -

HSM.HMIGTAPE.DATASET                            1 AR0282 HSM               0 07/07/1999 010757 AAS1     07/07/1999 222350 DFSMSHSM D

HSM.HMIGTAPE.DATASET                            1 AR0358 HSM         1124992 02/09/1999 082945 AAS1     03/09/1999 020929 DFSMSHSM D

HSM.HMIGTAPE.DATASET                            1 AR0373 HSM         1356720 22/07/1999 161439 AAS1     23/07/1999 040805 DFSMSHSM D

 

//RMMDERRC lists dataset entries, which are not not cataloged:

DEB$CI36-10 DATASET NAMES NOT CATALOGED                  RA2(C) V3R4M0 07/03/05 13.40  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001$ STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  17:11:30

DATASET NAME                                 SEQ# VOLSER OWNER    SIZE IN KB CREAT.DATE TIME   SYSTEMID CHNG.DATE  TIME   JOBNAME  T

-------------------------------------------- ---- ------ -------- ---------- ---------- ------ -------- ---------- ------ -------- -

MECX012.SAVE.MTI2.WEEKLY.G0017V00               1 AV3283               36792 26/01/2004 143636 MTI2     05/10/2004 032623 MIXMIX1A D

MECX012.SAVE.MTI2.WEEKLY.G0018V00               1 AV3605               35832 26/01/2004 143645 MTI2     12/10/2004 032002 MIXMIX1A D

 

//RMMVERRC lists volumes with dataset entries, which are not cataloged:

DEB$CI21-10 VOLUME LIST WITH DATASETS NOT CATALOGED      RA2(C) V3R4M0 07/03/05 13.28  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001$ STEPNAME:IGGCSI00 PROCNAME:                                                            TIME:  17:10:31

VOLUME DATASET NAME                                 RACK   BIN    OWNER    MEDIA-N. ASSIGNDATE EXPIR.DATE LOCATION DESTINAT STATUS 

------ -------------------------------------------- ------ ------ -------- -------- ---------- ---------- -------- -------- --------

AV3673 ITCX0$P.SAVE.MTI2.WEEKLY.G0022V00                          IBMUSER           26/01/2004 26/01/2004 ROB2              MASTER 

AV7712 ITCX0$P.SAVE.MTI2.WEEKLY.G0023V00                          IBMUSER           26/01/2004 26/01/2004 ROB2              MASTER 

 

//RMMRELDV RMM control cards to release volumes:

 RMM DV AR0503 RELEASE   /* 04/09/1999 HSM.HMIGTAPE.DATASET          */

 RMM DV AR1139 RELEASE   /* 04/09/1999 HSM.HMIGTAPE.DATASET          */

 

 

DEB$CI50  -  HSM BCDS/MCDS list facility

Purpose:

- Create various HSM reports

- Verify that HSM datasets are catalogued

 

JCL required to run DEB$CI50

Run the following JCL (refer to the RA2002.SAMPLIB member DEB$CI50) to create the HSM MCDS and BCDS reports:

//HSMVOL     EXEC PGM=DEB$CI50                      

//*          PARM='VOL=PV**,DSN=**'                 

//STEPLIB    DD   DISP=SHR,DSN=RA2002.LINKLIB

//HSMPRINT   DD SYSOUT=*                            

//HSMBCDS    DD DISP=SHR,DSN=HSM0.PROD.BCDS         

//HSMMCDS    DD DISP=SHR,DSN=HSM0.PROD.MCDS         

//HSMOCDS    DD DISP=SHR,DSN=HSM0.PROD.OCDS         

//HSMMDEL1   DD SYSOUT=*                            

//HSMMHLI1   DD SYSOUT=*                            

//HSMMLST1   DD SYSOUT=*                             

//HSMMLST2   DD SYSOUT=*                            

//HSMMLST3   DD SYSOUT=*                            

//HSMMLST4   DD SYSOUT=*                            

//HSMMLST5   DD SYSOUT=*                            

//HSMMLST6   DD SYSOUT=*                            

//HSMMLST7   DD SYSOUT=*                            

//HSMMLST8   DD SYSOUT=*                            

//HSMBDEL1   DD SYSOUT=*                            

//HSMBHLI1   DD SYSOUT=*                             

//HSMBLST1   DD SYSOUT=*                            

//HSMBLST2   DD SYSOUT=*                            

//HSMBLST3   DD SYSOUT=*                            

//HSMCARD    DD *                                   

*                                                    

+OPTIONS HEADING=YES,LOCATE=YES                     

+INCLUDE VOLUME=*,DATASET=AD.*.**                   

*EXCLUDE VOLUME=PV*2                                

 

 

 

Filter Control Statements (//HSMCARD DD ) 

Following control statements can be utilized to obtain the HSM verification reports:

DDname

Verbs

Keywords

Comment

Default

//HSMCARD

*

N/A

Comment line

N/A

+OPTIONS

 

Note: only one statement allowed

HEADING=YES or NO

Print headings (title lines)

YES

LOCATE=YES or NO

Check if HSM dataset is cataloged

 

YES

+INCLUDE

+EXCLUDE

 

Note: you can define as many +INCLUDE and +EXCLUDE statements as required. Make sure the region size is set to e.g. REGION=0M

VOLUME==

Specifies the volume serial number(s) to extract.

Generic filtering is supported.

 

N/A

 

DATASET=

Specifies the datasets to extract.

Generic filtering is supported.

 

N/A

 

 

 

 

DDNAMES  related to the HSM verification  process

 

DDNAME

Description

HSMPRINT

Print file – lists all //HSMINPUT control statements.  If an error occurred please review this output.

HSMMCDS

HSM MCDS Input file

HSMBCDS

HSM BCDS Input file

HSMOCDS

HSM OCDS Input file

HSMCARD

Input file - Control statements

HSMPRINT

Print file – lists all processed HSM control cards found via //HSMCARD

HSMMDEL1

Punch file – control statements to delete/purge uncataloged files found in MCDS

HSMMHLI1

Punch file – control statements to list TTOC entries for uncataloged files

HSMMLST1

Print file – lists all MCDS datasets sorted by DSN

HSMMLST2

Print file – lists all MCDS datasets sorted by creation date

HSMMLST3

Print file – lists all MCDS datasets sorted by migration date

HSMMLST4

Print file – lists all MCDS datasets sorted by recall date

HSMMLST5

Print file – lists all MCDS datasets sorted by reference date

HSMMLST6

Print file – lists all MCDS datasets sorted by expiration date

HSMMLST7

Print file – lists all MCDS datasets sorted by datasets and MCDS flags

HSMMLST8

Print file – lists all MCDS datasets sorted by datasets not catalogued

HSMBDEL1

Punch file – control statements to delete/purge uncataloged files found in BCDS

HSMBHLI1

Punch file – control statements to list BCDS entries for uncataloged files

HSMBLST1

Print file – lists all BCDS datasets sorted by DSN

HSMBLST2

Print file – lists all BCDS datasets sorted by datasets not catalogued

HSMBLST3

Print file – lists all BCDS datasets sorted by last backup date

 

Meaning of //HSMMLST7 MCDS FLAGS

MCDS

Flag field

Description

MCDT_FASN 

1

Migrated Copy Exists                

MCDT_FDEL 

2

Dataset Was Deleted                 

MCDT_FDUMD

3

Dummy Record                        

MCDT_FEOS 

4

Erase                               

MCDT_FL2  

5

If Yes On Level 2                   

MCDT_FMCO 

6

MCO Record Exists                    

MCDT_FMIG 

7

Migrated                            

MCDT_FMIGP

8

VSAM Migration Is Progress          

MCDT_FNOMG

9

DSN Is To Be Retained From Migration

MCDT_FNSCR

A

Dataset Is Recalled                 

MCDT_FR3  

B

Created By Release 3                  

MCDT_FSDP 

C

Data Set Is Small-Dataset-Packed    

MCDT_FSMVL

D

Space Mgmt Flags (MCDRECAL)

MCDT_JES3 

E

Record Processed By HSM-JES3 Setup. 

MCDT_NOUPD

F

RACF Prof Not Updated               

MCDT_RACND

G

RACF Indicator                       

MCDT_STAT 

H

Status M=Migrated 2 On Level 2      

 

 

Output Samples:

//HSMPRINT lists all control card entries ‘as is’:

HSMPRINT-10 CONTROL STATEMENTS                                     RA2(C) V3R4M0 07/03/05 12.53   RACF VER:2608      PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001A STEPNAME:HSMVOL   PROCNAME:                                                            TIME:  21:33:15

                                                                                                                                   

CONTROL CARD(S) READ VIA //HSMCARD                                       ERROR MESSAGE                                              

------------------------------------------------------------------------ -------------------------------------------------         

                                                                                                                                    

+OPTIONS HEADING=YES,LOCATE=YES                                                                                                    

+INCLUDE VOLUME=*,DATASET=AX.*.**                                                                                                   

*EXCLUDE VOLUME=PV*2                                                                                                               

 

//HSMMLST1 lists dataset entries:

DEB$CI65-10 MCDS - DATASET NAME LIST (SORTED BY DSN)     RA2(C) V3R4M0 07/03/05 14.04  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001A STEPNAME:HSMVOL   PROCNAME:                                                            TIME:  21:33:37

DATASET NAME                                 VOLSER C ORGVOL CREAT.DATE MIGRA.DATE TIME RECAL.DATE REFER.DATE EXPIR.DATE OG FMT BLKS

-------------------------------------------- ------ - ------ ---------- ---------- ---- ---------- ---------- ---------- -- --- ----

AX.COP.MLZ9704                               A06045 N X3UPC0 1997-04-24 2000-02-28 2236            1998-02-27 1997-04-24 PS FB   187

AX.COP.TANTRO                                A11576 N TISK44 1995-08-07 1995-11-08 0011            1995-08-07            PS FB   650

 

//HSMMLST7 lists dataset entries (MCDS FLAGS)

DEB$CI71-10 MCDS - DATASETS (SORTED BY DSN / MCDS FLAGS) RA2(C) V3R4M0 07/03/05 14.16  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001A STEPNAME:HSMVOL   PROCNAME:                                                            TIME:  21:33:37

DATASET NAME                                 VOLSER ORGVOL OG FMT BLKSI 1 2 3 4 5 6 7 8 9 A B C D E F G H SIZETRKS SIZEBYTE SIZE2KBL

-------------------------------------------- ------ ------ -- --- ----- - - - - - - - - - - - - - - - - - -------- -------- --------

AX.OP.XXX9704                                A00045 D3UPC0 PS FB   1870 Y       Y           Y   Y       2 00000099 04060473 00000900

 

//HSMBLST1 lists dataset entries:

DEB$CI60-10 BCDS - DATASET NAME LIST (SORTED BY DSN)     RA2(C) V3R4M0 07/03/05 13.48  RACF VERS 2608                PAGE:         1

                                                                                                                     DATE:2005-08-20

            JOBNAME :XRZP001A STEPNAME:HSMVOL   PROCNAME:                                                            TIME:  21:33:31

DATASET NAME                                 VOLSER C SMS LAST BKUP  TIME #GEN MAXB T-V  FRQ. C-V CMP KL. BYTES-UV OG FMT BLKSI    

-------------------------------------------- ------ - --- ---------- ---- ---- ---- ---- ---- --- --- --- -------- -- --- -----    

AX.XXOIS.RAVTEST                             A00664 N     1997-06-16 2104    1    1    1        1         00007392 PS VB   3004    

 

//HSMMDEL1 HSM control cards to delete datasets:

/* DATASETS NOT CATALOGED                  */                               

 HSEND DELETE 'AX.COP.EEEEEE                          PURGE          

 HSEND DELETE 'AX.COP.XXXXXX                           PURGE